/*
 * @Author: shawnXiao
 * @Date: 2021-12-23 11:32:36
 * @LastEditTime: 2022-01-05 11:49:06
 * @FilePath: /vite2-vue3-typescript/src/main.ts
 */
import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store'
import i18n from '@/i18n'
import '@/assets/style/index.less'

import 'ant-design-vue/lib/message/style/index.less'
import 'ant-design-vue/lib/notification/style/index.less'
import 'ant-design-vue/lib/modal/style/index.less'

import { setupAntd } from './plugins/setupAntd'

import './permission'

const app = createApp(App)

import.meta.env.MODE === 'production' && setupAntd(app)

app.use(router).use(store).use(i18n)

app.mount('#app')
